import React, { useState } from 'react';
// @ts-ignore
import { Drawer } from 'abc-ui';

export default () => {
  const [visible, setVisible] = useState(false);
  return (
    <div>
      <a
        onClick={() => {
          setVisible(true);
        }}
      >
        点击
      </a>
      <Drawer
        title="Basic Drawer"
        visible={visible}
        // onOk={this.handleOk}
        onCancel={() => {
          setVisible(false);
        }}
      />
    </div>
  );
};
